package com.hmall.mapper;

import com.hmall.model.MallAttrConnect;
import com.hmall.util.MyMapper;
import com.hmall.vo.ProductVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;
import java.util.Set;

@Repository
public interface MallAttrConnectMapper extends MyMapper<MallAttrConnect> {
    int removeProduct(Integer product_id);

    List findByProductId(Integer product_id);

    Integer findProductIdByModel(String model);

    List<String> selectLikeModel(@Param("subModel") String subModel, @Param("shopId") Integer shopId, @Param("searchCount") Integer searchCount);

    List<Integer> findProductIdListByFuzzyModel(@Param("fuzzyModel") String fuzzyModel, @Param("shopId") Integer shopId);

    List<Map<String, String>> selectTwistFromModel(@Param("model") String model);
}